home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-02
/
sndpas.zip
/
DEMO2.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1989-03-09
|
620b
|
27 lines
{ Interrupt drive sound demo
Written by:
Nels Anderson
92 Bishop Drive
Framingham, MA 01701
Released to the public domain
}
Uses
Crt,Dos,Sounder;
begin {Main routine}
WriteLn('Sound Interrupt Demo');
WriteLn('Hit any key to quit...');
GetIntVec($1C,Int1CSave); {save original interrupt vector}
SetIntVec($1C,New1CInt); {install sound interrupt}
StartSound(@Ruddigore,99,1); {start theme song}
repeat {song plays...}
until KeyPressed; {...until a key is hit}
SetIntVec($1C,Int1CSave); {fix interrupt vector}
NoSound; {ensure sound is now off}
end.